<?php

namespace app\serverbankcard\service\bankcard;
use \app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-08-30 10:35:31
 * @Description: 银行卡管理
 */

class Bankcard extends ApiBase{
	
	protected $bankcardLogic = '\app\serverbankcard\logic\Bankcard';
    protected $bankcardValidate = '\app\serverbankcard\validate\Bankcard';

    /*后台 - 获取银行卡列表（分页数据）*/
    public function cardList(): array 
    {
    	$data = $this->haveIssetReceiveData(['page'=>1, 'listRows'=>15, 'status'=>'', 'token'=>' ', 'keywords'=>''], ['']);
        return $this->oneStepRun($data, 'serverbankcard/bankcard/Bankcard/cardList', '');
    }
   
    /*后台 - 删除银行卡*/
    public function AdminDelCard(): array 
    {
    	$data = $this->haveIssetReceiveData(['id'=>0, 'token'=>' ']);
        return $this->oneStepRun($data, 'serverbankcard/bankcard/Bankcard/AdminDelCard', '');
    }

    /*后台 - 审核银行卡*/
    public function audit(): array 
    {
    	$data = $this->haveIssetReceiveData(['id'=>0, 'status'=>' ', 'token'=>' ']);
        return $this->oneStepRun($data, 'serverbankcard/bankcard/Bankcard/audit', 'audit');
    }

    
    

}